home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / pagede1a / code.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-08-31  |  7.1 KB  |  236 lines

  1. VERSION 5.00
  2. Begin VB.Form Form6 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Html code"
  5.    ClientHeight    =   6015
  6.    ClientLeft      =   45
  7.    ClientTop       =   285
  8.    ClientWidth     =   8190
  9.    LinkTopic       =   "Form6"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   6015
  13.    ScaleWidth      =   8190
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.CommandButton Command4 
  17.       Caption         =   "Image map"
  18.       Height          =   375
  19.       Left            =   120
  20.       TabIndex        =   5
  21.       Top             =   4320
  22.       Width           =   1935
  23.    End
  24.    Begin VB.CommandButton Command3 
  25.       Caption         =   "Add form"
  26.       Height          =   375
  27.       Left            =   120
  28.       TabIndex        =   4
  29.       Top             =   3840
  30.       Width           =   1935
  31.    End
  32.    Begin VB.Frame FRM 
  33.       Caption         =   "Form"
  34.       Height          =   2055
  35.       Left            =   2400
  36.       TabIndex        =   12
  37.       Top             =   3840
  38.       Visible         =   0   'False
  39.       Width           =   4335
  40.       Begin VB.TextBox Text6 
  41.          Height          =   285
  42.          Left            =   1080
  43.          TabIndex        =   6
  44.          Text            =   "Form1"
  45.          Top             =   240
  46.          Width           =   2895
  47.       End
  48.       Begin VB.TextBox Text7 
  49.          Height          =   285
  50.          Left            =   1080
  51.          TabIndex        =   9
  52.          Text            =   "2"
  53.          Top             =   1320
  54.          Width           =   1335
  55.       End
  56.       Begin VB.ComboBox Combo4 
  57.          Height          =   315
  58.          ItemData        =   "code.frx":0000
  59.          Left            =   1080
  60.          List            =   "code.frx":000A
  61.          TabIndex        =   8
  62.          Text            =   "POST"
  63.          Top             =   960
  64.          Width           =   1215
  65.       End
  66.       Begin VB.TextBox Text8 
  67.          Height          =   285
  68.          Left            =   1080
  69.          TabIndex        =   7
  70.          Text            =   "action goes here"
  71.          Top             =   600
  72.          Width           =   1815
  73.       End
  74.       Begin VB.CommandButton Command10 
  75.          Caption         =   "Add it"
  76.          Height          =   255
  77.          Left            =   3360
  78.          TabIndex        =   13
  79.          Top             =   1680
  80.          Width           =   855
  81.       End
  82.       Begin VB.Label Label6 
  83.          AutoSize        =   -1  'True
  84.          BackStyle       =   0  'Transparent
  85.          Caption         =   "Name:"
  86.          Height          =   195
  87.          Left            =   120
  88.          TabIndex        =   17
  89.          Top             =   240
  90.          Width           =   465
  91.       End
  92.       Begin VB.Label Label7 
  93.          AutoSize        =   -1  'True
  94.          BackStyle       =   0  'Transparent
  95.          Caption         =   "No. of fields:"
  96.          Height          =   195
  97.          Left            =   120
  98.          TabIndex        =   16
  99.          Top             =   1320
  100.          Width           =   885
  101.       End
  102.       Begin VB.Label Label8 
  103.          AutoSize        =   -1  'True
  104.          BackStyle       =   0  'Transparent
  105.          Caption         =   "Method:"
  106.          Height          =   195
  107.          Left            =   120
  108.          TabIndex        =   15
  109.          Top             =   960
  110.          Width           =   585
  111.       End
  112.       Begin VB.Label Label9 
  113.          AutoSize        =   -1  'True
  114.          BackStyle       =   0  'Transparent
  115.          Caption         =   "Action:"
  116.          Height          =   195
  117.          Left            =   120
  118.          TabIndex        =   14
  119.          Top             =   600
  120.          Width           =   495
  121.       End
  122.    End
  123.    Begin VB.CommandButton Command2 
  124.       Cancel          =   -1  'True
  125.       Caption         =   "Cancel"
  126.       Height          =   375
  127.       Left            =   6840
  128.       TabIndex        =   2
  129.       Top             =   4320
  130.       Width           =   1215
  131.    End
  132.    Begin VB.CommandButton Command1 
  133.       Caption         =   "Ok"
  134.       Default         =   -1  'True
  135.       Height          =   375
  136.       Left            =   6840
  137.       TabIndex        =   1
  138.       Top             =   3840
  139.       Width           =   1215
  140.    End
  141.    Begin VB.ListBox List1 
  142.       Height          =   3375
  143.       Left            =   0
  144.       TabIndex        =   3
  145.       Top             =   360
  146.       Width           =   2295
  147.    End
  148.    Begin VB.TextBox Text1 
  149.       Height          =   3375
  150.       Left            =   2400
  151.       MultiLine       =   -1  'True
  152.       ScrollBars      =   3  'Both
  153.       TabIndex        =   0
  154.       Top             =   360
  155.       Width           =   5775
  156.    End
  157.    Begin VB.Label Label2 
  158.       AutoSize        =   -1  'True
  159.       BackStyle       =   0  'Transparent
  160.       Caption         =   "Avalable tags"
  161.       Height          =   195
  162.       Left            =   120
  163.       TabIndex        =   11
  164.       Top             =   120
  165.       Width           =   960
  166.    End
  167.    Begin VB.Label Label1 
  168.       AutoSize        =   -1  'True
  169.       BackStyle       =   0  'Transparent
  170.       Caption         =   "Write your html code on the textbox below:"
  171.       Height          =   195
  172.       Left            =   2400
  173.       TabIndex        =   10
  174.       Top             =   120
  175.       Width           =   3015
  176.    End
  177. Attribute VB_Name = "Form6"
  178. Attribute VB_GlobalNameSpace = False
  179. Attribute VB_Creatable = False
  180. Attribute VB_PredeclaredId = True
  181. Attribute VB_Exposed = False
  182. Dim tgg(100) As String
  183. Private Sub Command1_Click()
  184. On Error Resume Next
  185. Dim i As Integer
  186. Text1.SelStart = 0
  187. Text1.Visible = False
  188. For i = 0 To Len(Text1.Text)
  189. Text1.SelStart = i
  190. Text1.SelLength = 1
  191. If Text1.SelText = """" Then
  192. Text1.SelText = "'"
  193. End If
  194. Next i
  195. Text1.Visible = True
  196. Form1.Label3(ccindexx).Tag = Text1.Text
  197. Unload Me
  198. End Sub
  199. Private Sub Command10_Click()
  200. Dim i As Integer
  201. Dim strg As String
  202. FRM.Visible = False
  203.     For i = 1 To Val(Text7.Text)
  204.     strg = strg + "<p>enter your field label name<input type=" & """text""" & " size=" & """20""" & " name=""T" & i & """></p>"
  205. Next i
  206. Text1.SelText = "<form action=""" & Text8.Text & """ method=""" & Combo4.Text & """ name=""" & Text6.Text & """>" & strg & "<p><input type=" & """submit" & """ name=" & """B1""" & " value=" & """Submit""" & "><input type=" & """reset""" & "name=" & """B2""" & "value=" & """Reset""" & "></p>" & " </form>"
  207. Text1.SetFocus
  208. End Sub
  209. Private Sub Command2_Click()
  210. Unload Me
  211. End Sub
  212. Private Sub Command3_Click()
  213. FRM.Visible = True
  214. End Sub
  215. Private Sub Command4_Click()
  216. On Error Resume Next
  217. Form8.Show vbModal
  218. End Sub
  219. Private Sub Form_Load()
  220. On Error Resume Next
  221. Dim taggg, codde
  222. Open App.Path & "\tags.txt" For Input As #1
  223. Input #1, taggg
  224. Input #1, codde
  225. List1.AddItem taggg
  226. tgg(List1.ListCount) = codde
  227. Loop Until EOF(1)
  228. Close #1
  229. Form6.Text1.Text = Form1.Label3(ccindexx).Tag
  230. End Sub
  231. Private Sub List1_DblClick()
  232. On Error Resume Next
  233. Text1.SelText = tgg(List1.ListIndex + 1)
  234. Text1.SetFocus
  235. End Sub
  236.